import request from '@/utils/request'

// 查询仓内移位单列表
export function listStockShift(query) {
  return request({
    url: '/stock/stockShift/list',
    method: 'post',
    data: query
  })
}

// 查询仓内移位单详细
export function getStockShift(id) {
  return request({
    url: '/stock/stockShift/' + id,
    method: 'get'
  })
}

// 新增仓内移位单
export function addStockShift(data) {
  return request({
    url: '/stock/stockShift/add',
    method: 'post',
    data: data
  })
}

// 修改仓内移位单
export function updateStockShift(data) {
  return request({
    url: '/stock/stockShift/update',
    method: 'post',
    data: data
  })
}

// 删除仓内移位单
export function delStockShift(id) {
  return request({
    url: '/stock/stockShift/delete/' + id,
    method: 'post'
  })
}

// 审核仓内移位单
export function auditStockShift(id) {
  return request({
    url: '/stock/stockShift/audit/' + id,
    method: 'post'
  })
}